//
//  FirstWoDeWeiDian.m
//  EJLX
//
//  Created by xufei on 15/12/2.
//  Copyright © 2015年 江苏一键联信息科技有限公司. All rights reserved.
//

#import "FirstWoDeWeiDian.h"
#import "WoDeWeiDian.h"
@implementation FirstWoDeWeiDian
+(id)userWithDictionary:(NSDictionary*)userDic
{
    return [[self alloc]initWithDictionary:userDic];
}
-(id)initWithDictionary:(NSDictionary*)userDic
{
    self=[super init];
    if (self)
    {
        _url=[userDic[@"url"]copy];
        //_shopName=[userDic[@"shopName"]copy];
        _avatar=[userDic[@"avatar"]copy];
        _shopId=[userDic[@"shopId"]intValue];
        _totalPage=[userDic[@"totalPage"]intValue];
        _page=[userDic[@"page"]intValue];
        _pageSize=[userDic[@"pageSize"]intValue];
       NSMutableArray*listAry=userDic[@"list"];
//        if (listAry.count==0)
//        {
//            return self;
//        }
        _resuleAry=[NSMutableArray array];
        
        NSLog(@"zzzzzz%lu",(unsigned long)listAry.count);
        if (listAry.count>0)
        {
            for (int i=0;i<listAry.count; i++)
            {
                WoDeWeiDian*vd=[WoDeWeiDian userWithDictionary:listAry[i]];
                [_resuleAry addObject:vd];
                NSLog(@"ssss%lu",(unsigned long)_resuleAry.count);
            }
        }
       
        
        
        
    }
    return self;
}

@end
